package com.modxiageasyh.mixinglibrary

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.fragment.findNavController
import kotlinx.android.synthetic.main.mx_activity_main.*

private const val TAG = "MxMainActivity"
class MxMainActivity : AppCompatActivity() {

    val a = this.javaClass.simpleName

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.mx_activity_main)
        toolbar.setNavigationIcon(R.drawable.ic_baseline_arrow_yellow_24)
        toolbar.setNavigationOnClickListener {
            if (!mlNavHostFragment.findNavController().popBackStack()) finish()
        }
    }


}